package com.glory.brepda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: ReparFromListEntity
 * Author: XJH
 * Date: 2020/8/20 19:20
 * Description:
 * History:
 */
public class RepairFromListEntity implements Serializable {
    private List<RepairData> REPAIRFORMLIST;

    public List<RepairData> getREPAIRFORMLIST() {
        if (REPAIRFORMLIST == null) {
            return new ArrayList<>();
        }
        return REPAIRFORMLIST;
    }

    public void setREPAIRFORMLIST(List<RepairData> REPAIRFORMLIST) {
        this.REPAIRFORMLIST = REPAIRFORMLIST;
    }


    public static class RepairData implements Serializable{
        private RepairFromEntity REPAIRFORM; //维修单表头
        private RepairSheetDataEntity REPAIRSHEETDATA;//维修单详情
        private List<RepairLogEntity> REPAIRFORMHISLIST;//维修历史日志
        private List<RepairSheetDataEntity.PartListEntity> PARTSLINEDATAS;//零部件列表

        private List<EQPMATERIALSDTO> EQPMATERIALS;

        public List<EQPMATERIALSDTO> getEQPMATERIALS() {
            if (EQPMATERIALS == null) {
                return new ArrayList<>();
            }
            return EQPMATERIALS;
        }

        public void setEQPMATERIALS(List<EQPMATERIALSDTO> EQPMATERIALS) {
            this.EQPMATERIALS = EQPMATERIALS;
        }

        public List<RepairSheetDataEntity.PartListEntity> getPARTSLINEDATAS() {
            if (PARTSLINEDATAS == null) {
                return new ArrayList<>();
            }
            return PARTSLINEDATAS;
        }

        public void setPARTSLINEDATAS(List<RepairSheetDataEntity.PartListEntity> PARTSLINEDATAS) {
            this.PARTSLINEDATAS = PARTSLINEDATAS;
        }

        public List<RepairLogEntity> getREPAIRFORMHISLIST() {
            if (REPAIRFORMHISLIST == null) {
                return new ArrayList<>();
            }
            return REPAIRFORMHISLIST;
        }

        public void setREPAIRFORMHISLIST(List<RepairLogEntity> REPAIRFORMHISLIST) {
            this.REPAIRFORMHISLIST = REPAIRFORMHISLIST;
        }

        public RepairFromEntity getREPAIRFORM() {
            return REPAIRFORM;
        }

        public void setREPAIRFORM(RepairFromEntity REPAIRFORM) {
            this.REPAIRFORM = REPAIRFORM;
        }

        public RepairSheetDataEntity getREPAIRSHEETDATA() {
            return REPAIRSHEETDATA;
        }

        public void setREPAIRSHEETDATA(RepairSheetDataEntity REPAIRSHEETDATA) {
            this.REPAIRSHEETDATA = REPAIRSHEETDATA;
        }


        public static class EQPMATERIALSDTO implements Serializable{
            private String EQUIPMENTID;
            private String POSITIONNAME;
            private String MLOTID;
            private String MATERIALNAME;
            private String MATERIALDESC;
            private String MATERIALTYPE;
            private String ATTACHDATE;

            public String getEQUIPMENTID() {
                return EQUIPMENTID == null ? "" : EQUIPMENTID;
            }

            public void setEQUIPMENTID(String EQUIPMENTID) {
                this.EQUIPMENTID = EQUIPMENTID;
            }

            public String getPOSITIONNAME() {
                return POSITIONNAME == null ? "" : POSITIONNAME;
            }

            public void setPOSITIONNAME(String POSITIONNAME) {
                this.POSITIONNAME = POSITIONNAME;
            }

            public String getMLOTID() {
                return MLOTID == null ? "" : MLOTID;
            }

            public void setMLOTID(String MLOTID) {
                this.MLOTID = MLOTID;
            }

            public String getMATERIALNAME() {
                return MATERIALNAME == null ? "" : MATERIALNAME;
            }

            public void setMATERIALNAME(String MATERIALNAME) {
                this.MATERIALNAME = MATERIALNAME;
            }

            public String getMATERIALDESC() {
                return MATERIALDESC == null ? "" : MATERIALDESC;
            }

            public void setMATERIALDESC(String MATERIALDESC) {
                this.MATERIALDESC = MATERIALDESC;
            }

            public String getMATERIALTYPE() {
                return MATERIALTYPE == null ? "" : MATERIALTYPE;
            }

            public void setMATERIALTYPE(String MATERIALTYPE) {
                this.MATERIALTYPE = MATERIALTYPE;
            }

            public String getATTACHDATE() {
                return ATTACHDATE == null ? "" : ATTACHDATE;
            }

            public void setATTACHDATE(String ATTACHDATE) {
                this.ATTACHDATE = ATTACHDATE;
            }
        }
    }
}
